import request from '@/utils/request'
// 获取学生数组
export function getStudent(params) {
  return request({
    url: '/user/getStudent',
    method: 'get',
    params
  })
}
// 编辑学生信息
export function editStudent(params, data) {
  return request({
    url: '/user/editStudent',
    method: 'post',
    params,
    data
  })
}
// 获取学生院校信息
export function getStudentOptions(params) {
  return request({
    url: '/user/getStudentOptions',
    method: 'get',
    params
  })
}
// 添加学生
export function addStudent(params, data) {
  return request({
    url: '/user/addStudent',
    method: 'post',
    params,
    data
  })
}
// 删除学生
export function deleteStudent(data) {
  return request({
    url: '/user/deleteStudent',
    method: 'post',
    data
  })
}

// 获取老师数组
export function getTeacher(params) {
  return request({
    url: '/user/getTeacher',
    method: 'get',
    params
  })
}

// 获取学院信息
export function getTeacherOptions(params) {
  return request({
    url: '/user/getTeacherOptions',
    method: 'get',
    params
  })
}

// 编辑教师信息
export function editTeacher(params, data) {
  return request({
    url: '/user/editTeacher',
    method: 'post',
    params,
    data
  })
}

// 添加老师
export function addTeacher(params, data) {
  return request({
    url: '/user/addTeacher',
    method: 'post',
    params,
    data
  })
}
// 删除老师
export function deleteTeacher(data) {
  return request({
    url: '/user/deleteTeacher',
    method: 'post',
    data
  })
}

export function getClass(params) {
  return request({
    url: '/information/getClass',
    method: 'get',
    params
  })
}

export function getGrade(params) {
  return request({
    url: '/information/getGrade',
    method: 'get',
    params
  })
}

export function getInstitute(params) {
  return request({
    url: '/information/getInstitute',
    method: 'get',
    params
  })
}

export function getCourse(params) {
  return request({
    url: '/information/getCourse',
    method: 'get',
    params
  })
}
